﻿using BrnMall.Manager.Domain.Blog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QIDong.WeApp.Models
{

    /// <summary>
    /// 帖子列表
    /// </summary>
    public class BlogsListModel
    {
        /// <summary>
        /// 分页对象
        /// </summary>
        public PageModel PageModel { get; set; }
        /// <summary>
        /// 留言列表
        /// </summary>
        public List<BlogsModel> BlogList { get; set; }
    }
    /// <summary>
    /// 帖子列表
    /// </summary>
    public class ClientFollowListmodel
    {
        /// <summary>
        /// 分页对象
        /// </summary>
        public PageModel PageModel { get; set; }
        /// <summary>
        /// 留言列表
        /// </summary>
        public List<ClientFollowModel> ClientFollowList { get; set; }
    }
    /// <summary>
    /// 跟进语
    /// </summary>
    public class ClientFollowModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 部门成员ID
        /// </summary>
        public int StaffId { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int ClientId { get; set; }
        /// <summary>
        /// 客户的跟进内容    
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public string AddTime { get; set; }
    }

    public class BlogsModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺iD
        /// </summary>
        public int StoreId { get; set; }
        /// <summary>
        /// 会员Id
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 发布的动态内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 图片列表，多个逗号隔开，最多9张
        /// </summary>
        public string Imgs { get; set; }

        public string NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Avater { get; set; }
        /// <summary>
        /// 添加的时间
        /// </summary>
        public string Addtime { get; set; }
        /// <summary>
        /// 点赞数
        /// </summary>
        public int UpCount { get; set; }

        /// <summary>
        /// 评论列表
        /// </summary>
        public IList<BrnMall.Manager.Domain.Blog.BlogComment> CommentList { get; set; }

        /// <summary>
        /// 点赞明细
        /// </summary>
        public IList<BrnMall.Manager.Domain.Blog.BlogLike> UpList { get; set; }

    }
    public class BlogCommentModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 动态贴ID
        /// </summary>
        public int BlogId { get; set; }
        /// <summary>
        /// 评论人的会员ID
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 评论人的昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 评论时间
        /// </summary>
        public DateTime Addtime { get; set; }
    }
    
    public class BlogLike
    {
        public int Id { get; set; }
        /// <summary>
        /// 动态贴ID
        /// </summary>
        public int BlogId { get; set; }
        /// <summary>
        /// 点赞人昵称
        /// </summary>
        public string NickName { get; set; }
    }

    public class CllientListModel
    {
        /// <summary>
        /// 分页对象
        /// </summary>
        public PageModel PageModel { get; set; }
        /// <summary>
        /// 留言列表
        /// </summary>
        public List<ClientModel> CllientList { get; set; }
    }

    /// <summary>
    /// 列表的封装对象
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ListModel<T>
    {
        /// <summary>
        /// 分页
        /// </summary>
        public PageModel PageModel { get; set; }
        /// <summary>
        /// 文章列表
        /// </summary>
        public List<T> List { get; set; }
    }

    public class ClientModel
    {
        /// <summary>
        /// 我的客户Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 销售员的uid
        /// </summary>
        public int Staffid { get; set; }
        /// <summary>
        /// 客户的Uid
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// 备注名
        /// </summary>
        public string MemoName { get; set; }
        /// <summary>
        /// 性别 0 男 1女
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 邮件
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string Company { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Adress { get; set; }
        /// <summary>
        /// 会员标签名，多个逗号隔开
        /// </summary>
        public string Tags { get; set; }
        /// <summary>
        /// 客户来源
        /// </summary>
        public int Source { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 预计成交日期
        /// </summary>
        public string tradeDate { get; set; }
        /// <summary>
        /// 预计成交概率
        /// </summary>
        public int Probability { get; set; }
        /// <summary>
        /// 最后的跟进时间
        /// </summary>
        public DateTime FollowTime { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime Addtime { get; set; }
        /// <summary>
        /// 客户头像
        /// </summary>
        public string Imgs { get; set; }
        /// <summary>
        /// logo
        /// </summary>
        public string Avater { get; set; }
        /// <summary>
        /// 未联系天数
        /// </summary>
        public int NoContactCount { get; set; }
        /// <summary>
        /// 跟进天数
        /// </summary>
        public int FollowUpCount { get; set; }
    }
    
}